<div class="input-group">
    {% include "django/forms/widgets/input.html" %}
    <span class="input-group-btn">
        <button class="btn btn-secondary reslugify"
                type="button"
                title="{% if widget.custom_title %}{{ widget.custom_title }}{% else %}Regenerate slug{% endif %}"
                data-regenerate="{{ widget.attrs.id }}"
        >
            <span class="mdi mdi-refresh"></span>
        </button>
    </span>
</div>
